<?php

declare(strict_types=1);

namespace App\CustHub\Model;

use Hyperf\Database\Model\SoftDeletes;
use Mine\MineModel;

/**
 * @property int $id 
 * @property string $name 应用名称
 * @property string $square_logo_url 应用方形头像
 * @property string $description 应用详情
 * @property string $suite_id 应用ID
 * @property string $suite_secret 应用secret
 * @property int $type 类型：0=第三方应用 1=代开发模板
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 * @property string $deleted_at 
 */
class ChOpenWorkApp extends MineModel
{
    use SoftDeletes;
    public bool $incrementing = false;
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'ch_open_work_app';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'name', 'square_logo_url', 'description', 'suite_id', 'suite_secret', 'type', 'created_at', 'updated_at', 'deleted_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'type' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
